package com.sojson.util.db;

import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.Statement;
import java.util.ArrayList;

import com.sojson.base.impl.BaseUtilDto;

/**
 * DatabaseBean对象
 * 
 * @author liu
 * @date 2020-08-27
 */
public class DatabaseBean extends BaseUtilDto {

    /***/
    private static final long serialVersionUID = -175438101757287063L;
    /** 单个连接,顶级连接,比如:一级连接 */
    private Connection conn;
    /** 单个连接,顶级连接,比如:一级连接 */
    private Statement statement;
    /** 单个连接,顶级连接,比如:一级连接 */
    private ResultSet resultSet;
    /** 一组连接,比如:三级连接,二级连接,一级连接... */
    private ArrayList<Object> conns;
    /** 多组连接,每组除顶级外都是List,顶级是一个Object,比如:{三级连接...},{二级连接...},顶级连接 */
    private ArrayList<Object> connsList;

    public DatabaseBean() {}

    public DatabaseBean(Connection conn) {
        this.conn = conn;
    }

    public Connection getConn() {
        return conn;
    }

    public void setConn(Connection conn) {
        this.conn = conn;
    }

    public ResultSet getResultSet() {
        return resultSet;
    }

    public void setResultSet(ResultSet resultSet) {
        this.resultSet = resultSet;
    }

    public Statement getStatement() {
        return statement;
    }

    public void setStatement(Statement statement) {
        this.statement = statement;
    }

    public ArrayList<Object> getConns() {
        return conns;
    }

    public void setConns(ArrayList<Object> conns) {
        this.conns = conns;
    }

    public ArrayList<Object> getConnsList() {
        return connsList;
    }

    public void setConnsList(ArrayList<Object> connsList) {
        this.connsList = connsList;
    }

}